package com.example.business_oa.controller;

import com.example.business_oa.service.HoliService;
import com.example.comment_oa.response.AjaxResponse;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@CrossOrigin
@RequestMapping("/businessOa/Holi")
public class HoliController {
    @Resource
    HoliService holiService;

    @PostMapping("/ap")
    public AjaxResponse apHoli(){
        return AjaxResponse.success();
    }

    @PostMapping("/yes")
    public AjaxResponse yesHoli(){
        return AjaxResponse.success();
    }

    @PostMapping("/no")
    public AjaxResponse noHoli(){
        return AjaxResponse.success();
    }

}
